#include "systick.h"
#include "usart.h"
#include "dma.h"
#include "M24C02.h"
#include "W25Q64.h" 
#include "WHGM5.h"
#include "bootloader.h"
#include "mqtt.h"

int main(void)
{
	gd_hal_systick_init();
	gd_hal_usart_init();
	gd_hal_dma_init();
	
	M24C02_init();
	W25Q64_init();
	WHGM5_init();
	
	mqtt_connect_package();
	mqtt_publish("/publish/info", "{\"temp\":28}");
	
	bootloader_init();
	bootloader_brance();
	bootloader_cmdline_loop();
}
